package com.yunhai.model.entity.fms;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yunhai.model.base.BaseEntity;
import com.yunhai.model.entity.FmsFormulaRuleEntity;
import com.yunhai.model.vo.fms.FmsFormulaSpecVo;
import com.yunhai.model.vo.fms.FmsFormulaStepVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.experimental.Accessors;

/**
 * 配方实体
 * 
 * @author mengze
 * @date 2025-05-17 12:43:10
 */
@ApiModel("配方实体")
@Data
@Accessors(chain = true)
@TableName("fms_formula_manage")
public class FmsFormulaManageEntity extends BaseEntity {

	@ApiModelProperty(value = "主键id", example = "10001")
	@TableId(type = IdType.ASSIGN_ID)
	private Long id;
	/**
	 * 配方名称
	 */
	@ApiModelProperty("配方名称")
	private String name;
	/**
	 * 配方编码
	 */
	@ApiModelProperty("配方编码")
	private String number;
	/**
	 * 分类编码
	 */
	@ApiModelProperty("分类编码")
	private Long categoryId;

	@ApiModelProperty("配方分类名")
	@TableField(exist = false)
	private String categoryName;

	/**
	 * 配方编码
	 */
	@ApiModelProperty("外部配方编码")
	private String orNumber;

	@ApiModelProperty("外部配方编码分类")
	private String orCategoryId;
	/**
	 * 是否基线版本
	 */
	@ApiModelProperty("是否基线版本")
	private Integer isBaseline;
	/**
	 * 启用状态
	 */
	@ApiModelProperty("启用状态")
	private Integer enabled;

	/**
	 * 备注
	 */
	@ApiModelProperty("备注")
	private String remark;

	@ApiModelProperty("步骤列表")
	@TableField(exist = false)
	private List<FmsFormulaStepEntity> productSteps = new ArrayList<>();

	@ApiModelProperty("规格列表")
	@TableField(exist = false)
	private List<FmsFormulaSpecEntity> productSpecGroups = new ArrayList<>();

	@ApiModelProperty("规则列表")
	@TableField(exist = false)
	private List<FmsFormulaRuleEntity> productRules = new ArrayList<>();



}
